package org.ws.task.netty.manager;

import io.netty.channel.Channel;
import org.ws.task.listener.netty.ChannelChangeListener;

import java.util.Collection;


public interface ChannelConnectManager extends ChannelChangeListener {

    /**
     * 获取Channel
     * @param remote
     * @return
     */
    Channel getChannel(String remote);

    /**
     * 全部
     * @return
     */
    Collection<Channel> channels();
}
